'use strict';

module.exports = app => {
  const { STRING, INTEGER } = app.Sequelize;

  const Work = app.model.define('works', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    personnelId: INTEGER,
    userName: STRING,
    employer: STRING,
    department: STRING,
    position: STRING,
    witness: STRING,
    witnessPhone: STRING,
    start: STRING,
    end: STRING,
    creation: STRING,
    mark: STRING,
  });

  return Work;
};
